package com.example.service.serviceImpl;

import com.example.domain.Checkid;
import com.example.mapper.CheckidMapper;
import com.example.service.CheckidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheckidServiceImpl implements CheckidService {

    @Autowired
    private CheckidMapper checkidMapper;

    @Override
    public Boolean insertCheckid( Integer uid, String starttime,String completetime, String tips) {
        return checkidMapper.insertCheckid(uid,starttime,completetime,tips);
    }

    @Override
    public Boolean updateTips(Integer checkid, String tips) {
        return checkidMapper.updateTips(checkid,tips);
    }

    @Override
    public List<Checkid> showAllCheckid() {
        return checkidMapper.showAllCheckid();
    }
    @Override
    public Boolean deletCheckId(Integer checkid){
        return checkidMapper.deletCheckId(checkid);
    }

    @Override
    public String showCompleteTime(Integer checkid){
        return checkidMapper.showCompleteTime(checkid);
    }

    @Override
    public List<String> showAllCompletetime() {
        return checkidMapper.showAllCompletetime();
    }

    @Override
    public Integer selectCheckidByCompletetime(String completetime) {
        return checkidMapper.selectCheckidByCompletetime(completetime);
    }

}
